package com.qianfeng.mapper;

import com.qianfeng.pojo.SysDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/9/8 20:11
 */
@Repository
public interface DeviceMapper {
    List<SysDevice> findById(Long cId);

    SysDevice findByDeviceId(String id);

    void bindDevice(SysDevice device);

    List<SysDevice> findBySceneId(Long sceneId);

    void updateDevice(SysDevice device);


    void deleteByDeviceId(String deviceId);

    List<SysDevice> findAll(Long uId);

    int updateDeviceStatus(@Param("deviceId") String deviceId,@Param("status") int status);

    void updateLastControlTime(SysDevice device);
}
